package com.itheima;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@ConfigurationProperties(prefix = "person")
@Data
public class HelloWorld {
//    @Value("${person.username}")
    private String username;
    @RequestMapping("hello1")
    public String hello0() {
        return "Hello World1"+username;
    }
}
